const propertiesParser = require('properties-parser');

var properties = {};
/**
 * ConfUtil工具类初始化
 * @param  {[string]} pathname [配置文件地址]
 */
exports.init = function(pathname) {
  properties = propertiesParser.read(pathname);
};

/**
 * 获取properties中的值
 * @param  {[string]} key [配置键]
 * @return {[string]}     [配置值]
 */
exports.get = function(key) {
  return properties[key];
};
